import request from "../uniHttp"

 // 查询所有的记录
 export const getAllRecords = (data) => {
 	return request({
 		url: '/api/sczx/tutorship/consAdvisory/list',
 		data:data
 	})
 }
 
 
 // 根据分页来查询
export const getPageRecords = (data) => {
	return request({
		url: '/api/sczx/tutorship/consAdvisory/page',
		data:data
	})
}

// 删除预约记录
export const cancelTheRecord = (data) => {
	return request({
		url: '/api/sczx/tutorship/consAdvisory/deleteById',
		data:data
	})
}
 
 // 修改
 // 预约记录
 export const edit = (data) => {
 	return request({
 		url: '/api/sczx/tutorship/consAdvisory/edit',
 		data:data
 	})
 }
 
 // 修改
 // 删除预约记录
 export const editDuty = (data) => {
 	return request({
 		url: '/api/sczx/tutorship/consCnDuty/edit',
 		data:data
 	})
 }
 
 // 导出pdf
 export const exportPdf = (data) => {
 	return request({
 		url: '/api/sczx/tutorship/consAdvisory/exportPdf',
 		data:data
 	})
 }
 // 根据ID查询详情API
 export const getRecordById = (data) => {
 	return request({
 		url: '/api/sczx/tutorship/consAdvisory/detailById',
 		data:data
 	})
 }
 
 // // 根据ID查询详情API
 // export const getRecordById = (data) => {
 // 	return request({
 // 		url: '/api/sczx/tutorship/consAdvisory/detailById',
 // 		data:data
 // 	})
 // }